package binchaji;

import LRUCache.MyLRUCache;

public class text {
    public static void main(String[] args) {

    }
    public static void main1(String[] args) {
        UnionFindSet union = new UnionFindSet(10);
        union.union(0,6);
        union.union(0,7);
        union.union(0,8);
        union.union(0,1);
        union.union(1,4);
        union.union(1,9);
        union.union(2,3);
        union.union(2,5);
        union.print();
        System.out.println(union.isUnion(0, 9));
        System.out.println(union.isUnion(0, 2));
        System.out.println(union.unionCount());
        union.union(0, 0);
        union.print();

    }
}
